package com.eckey.lab.feign;

import com.eckey.lab.entity.Accoun;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: Marinc
 * @CreateTime: 2023-09-12  16:09
 * @Description: TODO
 * @Version: 1.0
 */
@Component
@FeignClient(name = "account-service",fallbackFactory = AccountFallbackFactory.class)
public interface AccountFeign {

    @PostMapping("/account/add")
    String add(@RequestBody Accoun accoun);

}
